package com.fau.sd.util;

import java.util.Calendar;

/**
 * @desc 生成编号
 * @author liy
 * @datetime 2014年12月11日,下午12:39:41
 */
public class SerialNumUtil {

	public static String code() {
        Calendar cal = Calendar.getInstance();
        StringBuilder builder = new StringBuilder();
        int year = cal.get(Calendar.YEAR) - 2000;
        int month = cal.get(Calendar.MONTH)+1;
        builder.append(year);
        builder.append(month);
        for (int i = 0; i < 10; i++) {
        	builder.append((int)(Math.random() * 10));
        }
        return builder.toString();
    }
	
}